package com.cxso.example.request.sign;


import com.cxso.example.domain.sign.RuleInfoDomain;
import com.cxso.example.domain.sign.SignerInfoDomain;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Getter
@Setter
@Schema(description = "合同签署-骑缝章/多页签-入参")
public class SignMultipleSealRequest {


    @Schema(description = "合同编号", example = " B007E1835A55FC4D")
    @NotBlank(message = "合同编号不能为空")
    private String contractNum;

    @Schema(description = "是否完成标志", example = " 是否完成标志 0:是,1:否")
    @NotNull(message = "是否完成标志不能为空")
    private Integer isFinish;

    @Schema(description = "签署人信息", example = " 签署人信息")
    @NotNull(message = "签署人信息不能为空")
    @Valid
    private SignerInfoDomain signerInfo;

    @Schema(description = "签章规则", example = " 签章规则")
    @NotNull(message = "签章规则不能为空")
    @Valid
    private RuleInfoDomain ruleInfo;

}
